package models;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import play.data.validation.Required;
import play.db.jpa.Model;

@Entity
public class Comentario extends Model{

	@Required
	public String comentario;
	@Temporal(TemporalType.TIMESTAMP)
	public Date dataComentario;
	
	@ManyToOne
    public Imovel imovel;
	@ManyToOne
    public Usuario usuario;
	
	public Comentario(){
		
	}
}
